from script.get_user_info.rating.luogu import lg_rating
from script.testing.base import test_id_is_ok
from script.testing.config.config import twice_check_time_sleep
from script.get_user_info.response.luogu_response import luogu_json
import time
def test_lg_id_is_ok(uid ) :
    if test_id_is_ok(uid , lg_rating) == False:
        time.sleep(twice_check_time_sleep)
        check_text = """{"records":{"perPage":50,"count":0,"result":[]}}"""
        if luogu_json(uid) == check_text:
            return True
        else :
            return False
    else :
        return True

if __name__ == '__main__':
    print(test_lg_id_is_ok("1589656"))


